<?php

namespace App\Console\Crons;

use App\Models\Log\LogAdMonitor;
use App\Models\Log\LogAdMonitorInfo;
use App\Models\Log\LogLogin;
use App\Models\Log\LogPayCb;
use App\Models\Log\LogUserRoleLogin;

// 创建分表
class SplitTableCron extends CronBase
{
    public function run($stime)
    {
        $time = time()+86400*10;
        $suffix = date('Ym', $time);
        LogAdMonitor::suffix($suffix, true);
        LogAdMonitorInfo::suffix($suffix, true);
        LogLogin::suffix($suffix, true);
        LogPayCb::suffix($suffix, true);
        LogUserRoleLogin::suffix($suffix, true);
    }
}
